package org.jeecg.modules.website.service;

import org.apache.ibatis.annotations.Param;
import org.jeecg.modules.website.entity.WebSchoolMessage;
import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.modules.website.entity.WebWorkFile;

import java.io.Serializable;
import java.util.Collection;
import java.util.List;

/**
 * @Description: 学校信息表
 * @Author: jeecg-boot
 * @Date:   2024-08-02
 * @Version: V1.0
 */
public interface IWebSchoolMessageService extends IService<WebSchoolMessage> {
    public String getDictDescByCategoryAndType(String category, String type);
    /**
     * 添加一对多
     *
     * @param webSchoolMessage
     * @param webWorkFileList
     */
    public void saveMain(WebSchoolMessage webSchoolMessage, List<WebWorkFile> webWorkFileList) ;

    /**
     * 修改一对多
     *
     * @param webSchoolMessage
     * @param webWorkFileList
     */
    public void updateMain(WebSchoolMessage webSchoolMessage,List<WebWorkFile> webWorkFileList);

    /**
     * 删除一对多
     *
     * @param id
     */
    public void delMain (String id);

    /**
     * 批量删除一对多
     *
     * @param idList
     */
    public void delBatchMain (Collection<? extends Serializable> idList);


    public List<WebSchoolMessage> selectMajorList();
    //首页专业列表
    public List<WebSchoolMessage> selectMajor();
    //文化课介绍接口
    public WebSchoolMessage selectMajorName(String majorName);
}
